package com.wf.day_0610.test2;

import cn.hutool.core.util.ObjectUtil;
import com.wf.day_0607.test5.Phone;
import com.wf.day_0607.test5.Student;

import java.util.Arrays;

/**
 * @author mpk
 * @since 2024/6/17 08:53:40
 */
public class Test {
    public static void main(String[] args) {

        Student student = new Student("张三", 18, new Phone("123456789", 1000.0));


        byte[] serialize = ObjectUtil.serialize(student);

        ThreadLocal<String> stringThreadLocal = new ThreadLocal<>();

        Class<? extends ThreadLocal> aClass = stringThreadLocal.getClass();

        System.out.println(aClass.isPrimitive());

        System.out.println(aClass.isPrimitive());

        System.out.println(Arrays.toString(serialize));

        Object deserialize = ObjectUtil.deserialize(serialize);

        System.out.println(deserialize);


    }


}
